class Blogs < ActiveRecord::Migration
  def self.up
    create_table 'blogs', :force => false do |t|
      t.column :titulo,                 :string, :null => false, :limit => 128
      t.column :titulo_sanitizado,      :string, :null => false, :limit => 128
      t.column :texto,                  :string, :null => false, :limit => 1024
      t.column :created_at,             :datetime, :null => false
      t.column :updated_at,             :datetime, :null => false
      t.column :estado,                 :string, :null => false, :limit => 20
      t.column :orden,                  :integer, :null => false, :default => 0
    end
  end

  def self.down
    drop_table :blogs
  end
end